package com.ztgf.order.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ztgf.commodity.models.bo.OrderCommodityHighBO;
import com.ztgf.order.models.dto.OrderCommodityRelationDTO;
import com.ztgf.commodity.models.vo.OrderHighShopVo;
import com.ztgf.shopping.models.dto.shop.ShopSysInvoiceDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 订单商品表映射
 *
 * @author chenyu.wang
 * @Date 2020-06-03 15:55:40
 */
@Mapper
public interface OrderCommodityRelationMapper extends BaseMapper<OrderCommodityRelationDTO> {
    List<OrderHighShopVo> selectHighShop(OrderCommodityHighBO orderCommodityHighBO);

    /**
     * @return : java.util.List<com.ztgf.commodity.models.vo.OrderHighShopVo>
     * @Author :chenyu.wang
     * @Description : 获取商品浏览量排名，过滤下架商品
     * @Date : 2021.03.04 15:23
     * @Param : []
     **/
    List<OrderHighShopVo> getViewsGoods();

    /**
     * 同步技术服务费（卖家）
     * @Author :liyang
     * @return
     */
    List<ShopSysInvoiceDTO> synchronizationShopSysInvoiceSell();

    /**
     * 同步技术服务费（买家申请平台砍价成功）
     * @return
     */
    List<ShopSysInvoiceDTO> synchronizationShopSysInvoiceBuy();
}
